<template>
  <el-radio-group v-model="checkType" @change="emit('typeChange')">
    <el-radio-button :label="`全部(${countMap.total})`" value="" />
    <el-radio-button :label="`审批中(${countMap[1]})`" value="1" />
    <el-radio-button :label="`审批通过(${countMap[2]})`" value="2" />
    <el-radio-button :label="`审批不通过(${countMap[3]})`" value="3" />
  </el-radio-group>
</template>

<script setup>
const checkType = defineModel();
const emit = defineEmits(["typeChange"]);
const props = defineProps({
  countMap: {
    type: Object,
    default: () => ({
      total: 0,
      1: 0,
      2: 0,
      3: 0,
    }),
  },
});
</script>

<style scoped lang="scss"></style>
